<h1>Social media account List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Website</th>
      <th>Account name</th>
      <th>Person</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($social_media_account_list as $social_media_account): ?>
    <tr>
      <td><a href="<?php echo url_for('social_media_account/show?id='.$social_media_account['id']) ?>"><?php echo $social_media_account->getid() ?></a></td>
      <td><?php echo $social_media_account->getwebsite() ?></td>
      <td><?php echo $social_media_account->getaccount_name() ?></td>
      <td><?php echo $social_media_account->getperson_id() ?></td>
      <td><?php echo $social_media_account->getcreated_at() ?></td>
      <td><?php echo $social_media_account->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('social_media_account/new') ?>">New</a>
